package com.example.petshop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("address")
public class Address {
    @TableField("user_id")
    private Long userId;

    private int addressid;

    private String address;
    private String name;

    private String phone;
    private String province;
    private String city;
    private String town;
    private int isDefault; // 0 表示非默认地址，1 表示默认地址
    private String nickName;
}
